LEADTOOLS Medical (Leadtools.Dicom.AddIn assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Insert Method
See Also 
Leadtools.Dicom.AddIn Namespace > ThreadSafeList<T> Class : Insert Method



index
The zero-based index at which item should be inserted.
item
The object to insert into the IList.
index
The zero-based index at which item should be inserted.
item
The object to insert into the IList.
Inserts an item to the IList at the specified index.

Syntax

Visual Basic (Declaration) 
Public Sub Insert( _
   ByVal index As Integer, _
   ByVal item As T _
) 
Visual Basic (Usage)Copy Code
Dim instance As ThreadSafeList(Of T)
Dim index As Integer
Dim item As T
 
instance.Insert(index, item)
C# 
public void Insert( 
   int index,
   T item
)
C++/CLI 
public:
void Insert( 
   int index,
   T^ item
) 

Parameters

index
The zero-based index at which item should be inserted.
item
The object to insert into the IList.

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeException is not a valid index in the .
System.NotSupportedException The is read-only.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features